package com.tjetc.service;

import com.aliyuncs.exceptions.ClientException;
import com.tjetc.domain.Doctor;
import com.tjetc.vo.Result;

import com.tjetc.vo.Result;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;

import com.tjetc.vo.Result;

public interface DoctorService{


    int deleteByPrimaryKey(Integer id);

    int insert(Doctor record);

    int insertSelective(Doctor record);

    Doctor selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Doctor record);

    int updateByPrimaryKey(Doctor record);

    Result selByClinicId(Integer cid);

    Result login(Doctor doctor);
    Result getAll(Integer hid, String name, Integer pageNum, Integer pageSize);

    Result save(Doctor doctor, MultipartFile file) throws IOException, ClientException;

    Result deleteById(Integer id);

    Doctor getDoctorAndClinic(Integer id);

    Result updatePassword(Integer id, String oldPassword, String newPassword);
}
